//
//  ZhuantiTableViewCell.m
//  AStage_shougongke
//
//  Created by 赵磊 on 16/1/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ZhuantiTableViewCell.h"

@implementation ZhuantiTableViewCell
- (void)dealloc
{
    [_title release];
    [_bigImg release];
    [_leftDownImg release];
    [_leftUpImg release];
    [_rightDownImg release];
    [_rightUpImg release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.title = [[UILabel alloc] init];
        self.bigImg = [[UIImageView alloc] init];
        self.rightUpImg = [[UIImageView alloc] init];
        self.leftUpImg = [[UIImageView alloc] init];
        self.rightDownImg = [[UIImageView alloc] init];
        self.leftDownImg = [[UIImageView alloc] init];
        [self.contentView addSubview:_title];
        [self.contentView addSubview:_bigImg];
        [self.contentView addSubview:_rightUpImg];
        [self.contentView addSubview:_rightDownImg];
        [self.contentView addSubview:_leftUpImg];
        [self.contentView addSubview:_leftDownImg];
        [_title release];
        [_bigImg release];
        [_leftDownImg release];
        [_leftUpImg release];
        [_rightDownImg release];
        [_rightUpImg release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _title.frame = CGRectMake(20, 0, self.contentView.frame.size.width, 50);
    _bigImg.frame = CGRectMake(0, 50, (self.contentView.frame.size.width - 1) / 2, (self.contentView.frame.size.width - 1) / 2);
    _leftUpImg.frame = CGRectMake((self.contentView.frame.size.width - 1) / 2 + 1, 50, (_bigImg.frame.size.width - 1) / 2, (_bigImg.frame.size.width - 1) / 2);
    _leftDownImg.frame = CGRectMake((self.contentView.frame.size.width - 1) / 2 + 1, 50 + (_bigImg.frame.size.width - 1) / 2 + 1, (_bigImg.frame.size.width - 1) / 2, (_bigImg.frame.size.width - 1) / 2);
    _rightUpImg.frame = CGRectMake((self.contentView.frame.size.width - 1) / 2 + 2 + (_bigImg.frame.size.width - 1) / 2, 50, (_bigImg.frame.size.width - 1) / 2, (_bigImg.frame.size.width - 1) / 2);
    _rightDownImg.frame = CGRectMake((self.contentView.frame.size.width - 1) / 2 + 2 + (_bigImg.frame.size.width - 1) / 2, 50 + (_bigImg.frame.size.width - 1) / 2, (_bigImg.frame.size.width - 1) / 2, (_bigImg.frame.size.width - 1) / 2);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
